import Vue from "vue";
import Router from "vue-router";
import home from './pages/home'
import expandCourse from "./pages/expandCourse";
import courseVideo from "./pages/courseVideo";

Vue.use(Router);

export default new Router({
  mode: "hash",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      redirect: { name: 'home' }
    },
    {
      path: "/home",
      name: "home",
      component: home
    },
    {
      path: "/expandCourse",
      name: "expandCourse",
      component: expandCourse
    },
    {
      path: "/courseVideo",
      name: "courseVideo",
      component: courseVideo
    },
  ]
});
